{extend name="layout/common_layout" /}
{block name="body"}
    <!--tab标签-->
<div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this">用户需求管理</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <hr>
                <table class="layui-table">
                    <thead>
                    <tr>
                        <th style="width: 30px;">ID</th>
                        <th>用户姓名</th>
                        <th>联系方式</th>
                        <th>需求类型</th>
                        <th>状态</th>
                        <th>反馈时间</th>
                        <th>查看时间</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {foreach name="list" item="vo"}
                    <tr>
                        <td>{$vo.dc_id}</td>
                        <td>{$vo.dc_name}</td>
                        <td>{$vo.dc_phone}</td>
                        <td>{$vo.st_name}</td>
                        {if condition="$vo['dc_is_look'] == 1"}
                            <td style="color: #0BB20C">未查看</td>
                        {else/}
                            <td style="color: red">已查看</td>
                        {/if}
                        <td>{$vo.dc_create_time|date="Y-m-d H:i:s",###}</td>
                        {if  condition="$vo['dc_update_time'] != ''"}
                            <td>{$vo.dc_update_time|date="Y-m-d H:i:s",###}</td>
                        {else/}
                            <td></td>
                        {/if}
                        <td>
                            <a href="{:url('admin/Demandcarding/detail',['id'=>$vo['dc_id']])}" class="layui-btn layui-btn-normal layui-btn-mini">详情</a>
                        </td>
                    </tr>
                    {/foreach}
                    </tbody>
                </table>
                <!--分页-->
                {$list->render()}
            </div>
        </div>
</div>
{/block}